<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>学校填报</title>
<link href="/styles/style.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="/js/jquery-1.7.2.min.js"></script>
<script type="text/javascript">
$(function() {

	$("input").attr("readonly", "readonly");
	$("#edit").click(function() {

		$("input").removeAttr("readonly");
		$("#first").focus();
	});
	$("#save").click(function() {

		$("input").attr("readonly", "readonly");

			alert("保存成功");

	});
	
	$("#submit").click(function(){
		var majorid = ${major.majorid};
		var flag = confirm("确定要提交么?提交后不可修改");
		if (flag == true) {

			window.location.href = "/major/noedit?majorid=" + majorid+"&state=1";
		} 
	});

	$("#delete").click(function() {

		var flag = confirm("确定要删除该记录么？");
		var majorid = ${major.majorid};
		if (flag == true) {

			window.location.href = "/major/majordelete?majorid=" + majorid;
		} 
	});
});
</script>
</head>
<body>

	<form action="/major/majoredit" method="post">
		<table class="table11" style="width: 80%; line-height: 25px;">

			<tr>
				<th style="text-align: right;">所属机构</th>
				<th>中北大学教务处</th>
				<th style="text-align: right;">所属辖区</th>
				<th>尖草坪区</th>
				<th style="text-align: right;">状态</th>
				<th>填报</th>
			</tr>
			<tr>
				<td style="text-align: center;" colspan="6">专业建设类</td>
			</tr>
			<tr>
				<td align="right">专业大类数</td>
				<td><input type="text" name="majorType"
					value="${major.majorType }" id="first" /></td>
				<td align="right">专业数</td>
				<td><input type="text" name="majors" value="${major.majors }" /></td>
				<td align="right">专业方向数</td>
				<td><input type="text" name="marjosDirection"
					value="${major.marjosDirection }" /></td>
			</tr>

			<tr>
				<td align="right">省部级以上示范重点专业数</td>
				<td><input type="text" name="marjorKeys"
					value="${major.marjorKeys }" /></td>
				<td align="right">省部级以上示范骨干专业数</td>
				<td><input type="text" name="majorStaff"
					value="${major.majorStaff }" /></td>
				<td align="right">省部级以上示范特色专业数</td>
				<td><input type="text" name="majorSpecial"
					value="${major.majorSpecial }" /></td>
			</tr>
			<tr>
				<td align="right">实现项目教学的专业课程数</td>
				<td><input type="text" name="companyCourse"
					value="${major.companyCourse }" /></td>
				<td align="right">校本教材数</td>
				<td><input type="text" name="textbook"
					value="${major.textbook }" /></td>
				<td align="right">教师主编并公开出版的教材数</td>
				<td><input type="text" name="tTextbook"
					value="${major.tTextbook }" /></td>
			</tr>
			<tr>

				<td align="right">牵头开发国家共建共享计划课程数</td>
				<td colspan="2"><input type="text" name="planCourse"
					value="${major.planCourse }" /></td>
				<td align="right">参与开发国家共建共享课程数</td>
				<td colspan="2"><input type="text" name="shareCourse"
					value="${major.shareCourse }" /></td>
			</tr>
			<tr>
				<td align="right">填报人</td>
				<td colspan="2"><input type="text" name="checkPer"
					value="${major.checkPer}"></td>
				<td align="right">填报时间</td>
				<td colspan="2"><input type="text" name="mdate" ${major.mdate } /></td>
			</tr>
			<tr>
				<td align="right">区县意见</td>
				<td colspan="5"><c:choose>
						<c:when test="${major.xCheckstate=='-1'}">
												未审核		
											</c:when>

						<c:when test="${major.xCheckstate=='1'}">
							<font color="green">审核通过</font>
						</c:when>

						<c:when test="${major.xCheckstate=='2'}">
							<font color="red">未通过审核</font>
						</c:when>
					</c:choose></td>
			</tr>
			<tr>
				<td align="right">市意见</td>
				<td colspan="5"><c:choose>
						<c:when test="${major.cCheckstate=='-1'}">
												未审核		
											</c:when>

						<c:when test="${major.cCheckstate=='1'}">
							<font color="green">审核通过</font>
						</c:when>

						<c:when test="${major.cCheckstate=='2'}">
							<font color="red">未通过审核</font>
						</c:when>
					</c:choose></td>
			</tr>
			<tr>
				<td align="right">结果</td>
				<td colspan="5"><c:choose>
						<c:when test="${empty major.checkComment}">
												无		
											</c:when>
						<c:otherwise>${major.checkComment }</c:otherwise>
					</c:choose></td>
			</tr>
			<tr>
				<td colspan="6" align="center"><label> <input
						type="submit" class="btn" value="保存" id="save" /> &nbsp;&nbsp;<input
						type="button" value="修改" class="btn" id="edit" />&nbsp;&nbsp;<input
						type="button" value="提交" class="btn" id="submit" />&nbsp;&nbsp; <input
						type="button" class="btn" value="删除" id="delete" /> &nbsp;&nbsp;<input
						type="button" class="btn" onmouseover="changebg(this,'1')"
						onmouseout="changebg(this,'1')" value="返 回"
						onclick="javascript:history.go(-1);" />
				</label></td>
			</tr>
		</table>
		<input type="hidden" value="${major.majorid }" name="majorid" /><input
			type="hidden" value="-1" name="userid" /> <input type="hidden"
			value="${major.xCheckstate }" name="xCheckstate" /> <input
			type="hidden" value="${major.cCheckstate }" name="cCheckstate" /> <input
			type="hidden" value="${major.checkComment }" name="checkComment" /><input
			type="hidden" value="1" name="checkComment" /><input type="hidden"
			name="state" value="0">
	</form>
</body>
</html>